Showing posts with label Data Science. Show all posts
Showing posts with label Data Science. Show all posts

Tuesday, November 10, 2015

Getting started with Github #3 - Creating Repository



  1. Online Repository
  • Github.com -> new repository page
  • (snapshot here)

  2. Local Repository
  • Gitbah -> type some commands
    • mkdir ~/MyProject
      • mkdir : make directory
      • ~/ : 컴퓨터의 가장 상위 파일에 만든다는 뜻
      • MyProject : GitHub repo 의 이름과 같아야 함
    • cd ~/MyProject
    • git init

Repository (repo) : 프로젝트 저장소
* 보통 git command는 git 으로 시작함



Getting started with Github #2 - Setting up Github and Git




  1. Github.com 회원가입
  2. Git 설치
  3. Git Bash에서 기본정보 셋업
    • git config --global user.name "이름"
    • git config --global user.email "이메일(same with Github.com)" 


         Now we're ready to user Git & Github!

Monday, November 9, 2015

Getting started with Github #1 - Basic Commands



Git Specific Commands


  • git init : 새로운 Git repo 초기화. (이전엔 그냥 평범한 폴더임) 처음에 이 명령어를 입력해야만 다음 git 명령어들을 읽을 수 있다. 
  • git config : 처음 git 을 셋업할 때 쓰임
  • git help : 도움말 / git help init 이런 식으로 특정한 명령어에 대한 도움말도 볼 수 있음.
  • git status : repo의 상태 (어떤 파일들이 있는지, 어떤 변화들이 commit 되어야하는지, 현재 자신이 어떤 branch를 쓰고 있는지 등) 를 보여줌
  • git add : 실제 새 폴더를 repo에 추가하는 것이 아님. just brings new files to Git's attention. 
  • git commit : Git의 가장 중!요!한! 명령어. 작업 후, snapshot을 찍는 데 쓰임. 주로 [git commit -m "Message here."] 와 같이 쓰임. (-m 은 다음에 오는 명령어가 메시지로 읽힌다는 의미)
  • git branch : 나만의 branch를 만듬 / 'cats' 라는 branch를 만드려면 - git branch cats 
  • git checkout : 말 그대로 repo를 확인하는 것 / 'cats'를 확인하고 싶으면 - git checkout cats
  • git merge : 나만의 branch 에서 작업을 끝내고 다시 master branch에 반영시키고 싶을 때(그럼 다른 동료들이 다 볼 수 있음) - cats를 master에 add하고 싶으면 - git merge cats
  • git push : 내 컴퓨터에서 일하다가, 나의 commit들을 온라인 GitHub에 보이고 싶을 때 - local computer -> Github
  • git pull : Github -> local computer

Sunday, November 1, 2015

From Data Models to Databases



*Lecture note of Coursera - Introduction to Data Science*


  • How do we store data?
  • What is data model?  
             Three components 
                    1) Structures 
                    2) Constraints
                    3) Operations

  • What is database?
A collection of information organized to afford efficient retrieval

  • schema?